package com.xiao.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @_PackageName:com.xiao.service
 * @_ClassName:ScheduledService
 * @_Description:
 * @_Author：笑老二
 * @_data 2020/12/25 12:13
 */
@Service
public class ScheduledService {

    /**
     *  on the second, minute, hour, day of month, month, and day of week.
     *  <p>For example, {@code "0 * * * * MON-FRI"} means once per minute on weekdays
     */
    @Scheduled(cron = "0 * * * * MON-FRI")
    public void hello(){
        System.out.println("hello!!!");
    }
}
